package com.ck.ck_back.dao;

import com.ck.ck_back.pojo.LikeProduction;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface LikeProductionMapper {
    int deleteByPrimaryKey(Integer likeProductionId);

    int insert(LikeProduction record);

    int insertSelective(LikeProduction record);

    LikeProduction selectByPrimaryKey(Integer likeProductionId);

    int updateByPrimaryKeySelective(LikeProduction record);

    int updateByPrimaryKey(LikeProduction record);

//    根据两个id查点赞信息
    LikeProduction selectBytwo_id(int liked_production_id,String liked_post_id);

//    根据作品id拿点赞的数量
    int getnum(int liked_production_id);

    List<LikeProduction> selectswiper(Long datetime);
}